package com.cheer.ba.model;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.cheer.ba.view.adapter.ExpandableItemAdapter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Author: hq
 * Email: 834138841@qq.com
 * Comment: //TODO
 * Date: 2017-07-28 14:49
 */
public class NextLevleModel extends AbstractExpandableItem<ThreeLevleModel> implements MultiItemEntity, Serializable {

    //头像
    public String custImg;
    //用户iD
    public String custId;
    //昵称
    public String custNname;
    //获利金额
    public String money;
    //下级好友列表
    public List<ThreeLevleModel> nextLevel;
    //下级好友数
    public int nextLevelCount;


    public List<ThreeLevleModel> getNextLevel() {
        if (null == nextLevel) {
            nextLevel = new ArrayList<ThreeLevleModel>();
        }
        return nextLevel;
    }

    public void setNextLevel(List<ThreeLevleModel> nextLevel) {
        this.nextLevel = nextLevel;
    }

    @Override
    public int getItemType() {
        return ExpandableItemAdapter.TYPE_LEVEL_1;
    }

    @Override
    public int getLevel() {
        return 0;
    }
}
